<template>
	<view>
		<Com-header></Com-header>
		<!-- 头部业务 -->
		<view class="tou">
			<view class="yewu">主要业务
			</view>
			<image src="../../static/common_nav_message_black_n.png" mode="" class="ling" @click="lingdang"></image>
		</view>
		<!-- 中间页面 -->
		<view class="main">
			<view class="topBox">
				<image src="../../static/top.png" mode=""></image>
				<image src="../../shixun2-image/top.png" mode=""></image>
				<uni-tag text="有新消息" @click="message" class="xiaoxi" type="success"></uni-tag>
				<uni-tag text="问诊" @click="Interrogation" class="Interrogation" type="primary"></uni-tag>
			</view>

			<view class="center-box">
				<image src="../../static/center.png" mode=""></image>

				<uni-tag text="答疑" @click="dayi" class="dayi" type="primary" size="default"></uni-tag>
			</view>
		</view>
		<!-- 下边信息 -->
		<view class="bottom">
			<view class="my">我的信息</view>
			<view class="xinxi" @click="person">

				<image src="../../shixun2-image/xinxi.png" mode=""></image>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			//跳转新消息页面
			message() {
				uni.navigateTo({
					url: '/pages/Message/Message'
				})
			},
			//跳转问诊页面
			Interrogation() {
				uni.navigateTo({
					url: '/pages/Message/Message'
				})
			},
			//跳转答疑页面
			dayi() {
				uni.navigateTo({
					url: '/pages/AnsweringQuestion/AnsweringQuestion'
				})
			},
			// 跳转个人信息页
			person() {
				uni.navigateTo({
					url: '/pages/PersonalHomepage/PersonalHomepage'

				})
			},
			lingdang() {
				uni.navigateTo({
					url: '/pages/Information/Information'

				})
			}


		}
	}
</script>

<style>
	.tou {
		display: flex;
		justify-content: space-between;
	}

	.business {
		color: #55aaff;
		margin-left: 20rpx;
	}

	.ling {
		width: 60rpx;
		height: 60rpx;
		margin-right: 20rpx;
	}

	.topBox {

		width: 90%;
		height: 300rpx;
		border-radius: 15rpx;
		position: relative;
		margin: auto;
		margin-top: 50rpx;
	}

	.topBox image {
		width: 100%;
		height: 100%;
	}

	.xiaoxi {
		position: absolute;
		right: 0rpx;
		top: 0rpx;
	}

	.Interrogation {
		position: absolute;
		right: 0;
		bottom: 30rpx;
	}

	.center-box {

		width: 90%;
		height: 300rpx;
		position: relative;
		border-radius: 15rpx;
		margin: auto;
		margin-top: 50rpx;
	}

	.center-box image {
		width: 100%;
		height: 100%;
	}

	.dayi {
		position: absolute;
		right: 0;
		bottom: 35rpx;
	}

	.bottom {
		margin-top: 50rpx;
	}

	.bottom .my {
		color: #55aaff;
		font-size: 18px;
		margin-left: 20rpx;
		margin-bottom: 20rpx;
	}

	.xinxi {

		width: 90%;
		height: 300rpx;
		position: relative;
		border-radius: 15rpx;
		margin: auto;
		margin-top: 50rpx;

	}

	.xinxi image {
		width: 100%;
		height: 100%;
	}
</style>